Appendix for ED formulas

This document supplements some rather complex proof processes within ED Formulas and ED formulas (2)

1 VE(x)d3x=p3ϵ0

Let V be a spherical volume of radius R that completely encloses all charges, meaning the charge density ρ(x) vanishes for all r>R. Without loss of generality, we place the coordinate origin at the center of the sphere V. According to Coulomb's law, the electric field E(x) at any field point x inside the sphere is given by the volume integral over the source coordinates x,

E(x)=14πε0Vρ(x)xx|xx|3d3x

We want to evaluate the volume integral of E(x) over the entire sphere V,

VE(x)d3x=14πε0V[Vρ(x)xx|xx|3d3x]d3x

Since the region of integration is bounded and the charge distribution is well-behaved, we can apply Fubini's theorem to switch the order of the volume integrals over d3x and d3x,

VE(x)d3x=14πε0Vρ(x)[Vxx|xx|3d3x]d3x

Let us denote the inner vector integral as I(x),

I(x)=Vxx|xx|3d3x

We recognize that the integrand can be expressed as the negative gradient with respect to the field point x,

xx|xx|3=(1|xx|)

Substituting this identity into I(x) and applying a corollary of the divergence theorem (converting a volume integral of a gradient into a closed surface integral), we obtain,

I(x)=V(1|xx|)d3x=V1|xx|n^dA

where V represents the bounding spherical surface at r=R, and n^ is the outward unit normal vector. On this spherical surface, the field point is x=Rx^ (where x^ is the radial unit vector r^), and the area element is dA=R2dΩ. Thus, the integral becomes,

I(x)=R2r=R1|xx|x^dΩ

Because all charges are enclosed within the sphere, the source point always lies inside (r<R), while the field point in the surface integral lies exactly on the boundary (r=R). Since r<r, we can expand the reciprocal distance 1/|xx| into a series of Legendre polynomials,

1|xx|=l=0(r)lRl+1Pl(cosγ)

where γ is the angle between x and x.

To evaluate the solid angle integral, we temporarily align the z-axis along the direction of x, making γ=θ (the standard polar angle). The unit vector x^ expands in Cartesian components as,

x^=sinθcosϕi^+sinθsinϕj^+cosθk^

Integrating over the azimuthal angle ϕ from 0 to 2π, the terms containing cosϕ and sinϕ vanish identically due to periodicity. The only surviving component is along the k^ direction (which is the direction of x^),

r=R1|xx|x^dΩ=x^02πdϕ0π[l=0(r)lRl+1Pl(cosθ)]cosθsinθdθ

Noting that cosθ=P1(cosθ), we invoke the orthogonality condition for Legendre polynomials,

0πPl(cosθ)P1(cosθ)sinθdθ=22(1)+1δl,1=23δl,1

Hence, only the l=1 term yields a non-zero contribution to the infinite series,

r=R1|xx|x^dΩ=x^2πrR223=4π3R2(rx^)=4π3R2x

Substituting this result back into the expression for I(x), the radius R2 cancels out smoothly,

I(x)=R2(4π3R2x)=4π3x

We now feed I(x) back into our original total electric field volume integral,

VE(x)d3x=13ε0Vρ(x)xd3x

By definition, the total electric dipole moment p of the localized charge distribution with respect to our chosen origin is,

p=Vρ(x)xd3x

Replacing the integral with p, we arrive at,

VE(x)d3x=p3ε0

Next, we consider the alternative case where all charges lie entirely outside the spherical volume V, meaning the charge density ρ(x) vanishes for all rR. According to Coulomb's law, the electric field E(x) at any field point x inside the sphere is given by the volume integral over the external source coordinates x,

E(x)=14πε0Vextρ(x)xx|xx|3d3x

We want to evaluate the volume integral of E(x) over the entire sphere V,

VE(x)d3x=14πε0V[Vextρ(x)xx|xx|3d3x]d3x

Since the region of integration is bounded and the charge distribution is well-behaved, we can apply Fubini's theorem to switch the order of the volume integrals over d3x and d3x again,

VE(x)d3x=14πε0Vextρ(x)[Vxx|xx|3d3x]d3x

Let us also denote the inner vector integral as I(x),

I(x)=Vxx|xx|3d3x

We recognize that the integrand can be expressed as the negative gradient with respect to the field point x,

xx|xx|3=(1|xx|)

Substituting this identity into I(x) and applying a corollary of the divergence theorem (converting a volume integral of a gradient into a closed surface integral), we obtain,

I(x)=V(1|xx|)d3x=V1|xx|n^dA

where V represents the bounding spherical surface at r=R, and n^ is the outward unit normal vector. On this spherical surface, the field point is x=Rx^ (where x^ is the radial unit vector r^), and the area element is dA=R2dΩ. Thus, the integral becomes,

I(x)=R2r=R1|xx|x^dΩ

Because all charges lie outside the sphere, the source point always lies exterior (r>R), while the field point in the surface integral lies exactly on the boundary (r=R). Since r<r, we can expand the reciprocal distance 1/|xx| into a series of Legendre polynomials,

1|xx|=l=0Rl(r)l+1Pl(cosγ)

where γ is the angle between x and x.

To evaluate the solid angle integral, we temporarily align the z-axis along the direction of x, making γ=θ (the standard polar angle). The unit vector x^ expands in Cartesian components as,

x^=sinθcosϕi^+sinθsinϕj^+cosθk^

Integrating over the azimuthal angle ϕ from 0 to 2π, the terms containing cosϕ and sinϕ vanish identically due to periodicity. The only surviving component is along the k^ direction (which is the direction of x^),

r=R1|xx|x^dΩ=x^02πdϕ0π[l=0Rl(r)l+1Pl(cosθ)]cosθsinθdθ

Noting that cosθ=P1(cosθ), we invoke the orthogonality condition for Legendre polynomials:

0πPl(cosθ)P1(cosθ)sinθdθ=22(1)+1δl,1=23δl,1

Hence, only the l=1 term yields a non-zero contribution to the infinite series,

r=R1|xx|x^dΩ=x^2πR(r)223=4πR3(r)2x^=4πR3(r)3x

Substituting this result back into the expression for I(x), the variable factors yield,

I(x)=R2(4πR3(r)3x)=4πR33(r)3x

We now feed I(x) back into our original total electric field volume integral,

VE(x)d3x=14πε0Vextρ(x)[4πR33(r)3x]d3x=4πR33[14πε0Vextρ(x)x(r)3d3x]

By definition, the electric field E(0) evaluated at the origin (the center of the sphere) produced by the external charge distribution is given by,

E(0)=14πε0Vextρ(x)0x|0x|3d3x=14πε0Vextρ(x)x(r)3d3x

Replacing the integral with E(0), we arrive at,

VE(x)d3x=4πR33E(0)=VE(0)

Now, If all currents are contained within the sphere V, according to the Biot-Savart law, the magnetic field B(x) at any field point x inside the sphere is given by the volume integral over the localized current density J(x),

B(x)=μ04πVJ(x)×xx|xx|3d3x

We want to evaluate the volume integral of B(x) over the entire sphere V,

VB(x)d3x=μ04πV[VJ(x)×xx|xx|3d3x]d3x

Since the region of integration is bounded and the current distribution is well-behaved, we can apply Fubini's theorem to switch the order of the volume integrals over d3x and d3x,

VB(x)d3x=μ04πV[VJ(x)×xx|xx|3d3x]d3x

Because the inner integral is performed with respect to the field coordinates x, the current density J(x) treats it as a constant vector factor. Thus, we can pull J(x) out of the inner integration while carefully maintaining the vector cross product structure,

VB(x)d3x=μ04πVJ(x)×[Vxx|xx|3d3x]d3x

We immediately recognize that the vector integral inside the brackets is identical to the inner integral I(x) defined in the electrostatic case,

I(x)=Vxx|xx|3d3x

Since all currents are enclosed within the sphere, the source point always lies inside (r<R). We can directly substitute our previously derived result for I(x) when r<R, which is I(x)=4π3x,

VB(x)d3x=μ04πVJ(x)×(4π3x)d3x

Using the anticommutativity of the cross product (A×(B)=B×A), the negative sign is smoothly absorbed by reversing the order of the vectors,

VB(x)d3x=μ03Vx×J(x)d3x

By definition, the total magnetic dipole moment m of the localized current distribution is given by,

m=12Vx×J(x)d3x

Replacing the integral with 2m, we arrive at the final result,

VB(x)d3x=2μ03m

Next, we consider the alternative case where all currents lie entirely outside the spherical volume V, meaning the current density J(x) vanishes for all rR. According to the Biot-Savart law, the magnetic field B(x) at any field point x inside the sphere is given by the volume integral over the external source coordinates x,

B(x)=μ04πVextJ(x)×xx|xx|3d3x

We evaluate the volume integral of B(x) over the entire sphere V, and switch the order of integration via Fubini's theorem,

VB(x)d3x=μ04πVextJ(x)×[Vxx|xx|3d3x]d3x

Because all currents lie outside the sphere, the source point always satisfies r>R. Utilizing the corresponding external result for the inner integral I(x)=4πR33(r)3x, we substitute it back into the equation,

VB(x)d3x=μ04πVextJ(x)×[4πR33(r)3x]d3x

Applying the anticommutativity of the cross product to eliminate the negative sign yields,

VB(x)d3x=4πR33[μ04πVextx×J(x)(r)3d3x]

By definition, the magnetic field B(0) evaluated at the center of the sphere produced by the external current distribution is given by,

B(0)=μ04πVextJ(x)×0x|0x|3d3x=μ04πVextx×J(x)(r)3d3x

Replacing the bracketed integral with B(0), we arrive at,

VB(x)d3x=4πR33B(0)=VB(0)

2 Rotation of harmonics & Wigner D-Matrices *

Spherical harmonics Ylm(θ,φ) form a (2l+1)-dimensional irreducible representation of SO(3). Under a coordinate rotation R parameterized by the Euler angles (α,β,γ), the total angular momentum quantum number l remains invariant because the rotation operator commutes with the total angular momentum squared: [R,L2]=0. However, the azimuthal projection undergoes a linear transformation.

The transformed spherical harmonic in the rotated frame can be expressed as a linear combination of the original basis functions,

Ylm(θ,φ)=m=llDmml(α,β,γ)Ylm(θ,φ)

where Dmml(α,β,γ) are the elements of the Wigner D-matrix. We find that the entire rotation operator can be directly written as R(α,β,γ)=eiαLzeiβLyeiγLz. Thus, Wigner D-matrix can be factorized into a product of exponentials and Wigner's small d-matrix,

Dmml(α,β,γ)=l,m|eiαLzeiβLyeiγLz|l,m=eimαdmml(β)eimγ

Here, Wigner's small d-matrix dmml(β) describes the rotation around the y-axis,

dmml(β)=l,m|eiβLy|l,m

Since spatial rotations preserve the norm of the state space, the Wigner D-matrix is strictly unitary,

m=llDmkl(α,β,γ)Dmnl(α,β,γ)=δkn

In particular, when the second projection index is set to zero (m=0), the Wigner D-matrix simplifies directly to a spherical harmonic,

Dm0l(α,β,0)=4π2l+1Ylm(β,α)

Let γ denote the angle between the points (θ,φ) and (θ,φ) on the spherical surface. By first rotating the coordinate system anticlockwise by an angle of φ about the z-axis and then by an angle of θ about the y-axis, one find,

Pl(cosγ)=4π2l+1Yl0(γ,0)=4π2l+1m=llDm0l(φ,θ,0)Ylm(θ,φ)=4π2l+1m=llYlm(θ,φ)Ylm(θ,φ)

For ex., consider a frame's anticlockwise 90 rotation around the y-axis (α=0,β=π/2,γ=0) within the l=1 subspace. The Wigner small d-matrix evaluates to,

dmm1(π2)=(cos2β2sinβ2sin2β2sinβ2cosβsinβ2sin2β2sinβ2cos2β2)β=π2=(12121212012121212)

where rows and columns map to m,m=1,0,1 respectively. We construct the linear combination Y1x(θ,φ)Y11+Y112sinθcosφxr. The rotation gives,

Y10(θ,φ)=m=11dm01Y1m(θ,φ)=Y1x(θ,φ)cosθ=zr

Consequently, an anticlockwise rotation of the frame by β=π/2 around the +y-axis maps the old x-axis onto the new z-axis (xz). This means the original x-oriented dipole Y1x(θ,φ) transforms directly into a z-oriented dipole Y10(θ,φ).

Finally, the Wigner D-matrix and small d-matrix elements can be computed analytically using the built-in WignerD function in Wolfram Mathematica (MMA), with the following syntax,

Dmml(α,β,γ)WignerD[{l, mp, m}, α,β,γ]dmml(β)WignerD[{l, mp, m}, β]

Btw, the result from MMA differs by a transpose from the discussion above, but we still follow the same convention as Wikipedia and most textbooks.

3 Example: 2D Laplace Equation in a Rectangular Pipe

An infinitely long rectangular conducting pipe is formed by four mutually insulated plates. Three of the plates are maintained at zero potential, while the fourth is kept at a constant potential V0. Find the electrostatic potential inside the pipe?

Let the cross-section of the pipe have a width a along the x-axis and a height b along the y-axis. Due to translational symmetry along the infinite length (z-axis), φz=0. The problem reduces to a 2D domain: x[0,a] and y[0,b]. The boundary conditions are:

φ(0,y)=0,φ(a,y)=0,φ(x,0)=0,φ(x,b)=V0

The potential inside the charge-free pipe satisfies the 2D Laplace equation, Substituting φ(x,y)=X(x)Y(y) and dividing by φ yields,

2φx2+2φy2=01Xd2Xdx2+1Yd2Ydy2=0

Since the x-direction is bounded on both ends and requires zero potential at the boundaries, it must yield an oscillatory (trigonometric) solution. Thus, we assign a negative separation constant k2 to the x-term:

X(x)+k2X(x)=0,Y(y)k2Y(y)=0

The general solution for X(x) is X(x)=Asin(kx)+Bcos(kx). Applying the boundary conditions yields the discrete eigenvalues,

kn=nπa,(n=1,2,3,)Xn(x)=sin(nπxa)

For the y-direction, the general solution to Y(y)kn2Y(y)=0 is expressed via hyperbolic functions as Y(y)=Csinh(kny)+Dcosh(kny). Imposing the base boundary condition Y(0)=0D=0, leaving Yn(y)=sinh(nπya).

Invoking the principle of linear superposition, the total potential inside the pipe is represented as the infinite series:

φ(x,y)=n=1Ansin(nπxa)sinh(nπya)

To determine the remaining coefficients An, we apply the final inhomogeneous boundary condition at the top plate y=b,

φ(x,b)=n=1Ansinh(nπba)sin(nπxa)=V0

Exploiting the orthogonality of the sine functions over the interval [0,a], we project the constant potential V0 into its Fourier components,

Ansinh(nπba)=2a0aV0sin(nπxa)dx=2V0nπ[1(1)n]

This integral vanishes for all even integers n. For odd integers, letting n=2m+1 (where m=0,1,2,), the non-zero coefficients are isolated as,

A2m+1=4V0(2m+1)πsinh((2m+1)πba)

Substituting A2m+1 back into the generalized series provides the final analytical solution for the potential distribution inside the rectangular pipe,

φ(x,y)=4V0πm=012m+1sinh((2m+1)πya)sinh((2m+1)πba)sin((2m+1)πxa)

4 Physical Interpretation of the Sign and Energy Definitions *

The choice of a positive sign in the generalized force relation F=+U arises from the thermodynamics of systems with constant currents, which differs fundamentally from electrostatic systems. Two distinct definitions of magnetic interaction energy exist depending on the physical constraints of the system,

A more explicit comparison is presented here. In an electric field with fixed charges, when an electric dipole is displaced, the charge distribution remains naturally invariant, and no external energy is required to maintain the charges. Consequently, the mechanical work is done entirely at the expense of the electrostatic potential energy, satisfying the classical mechanical relation F=Ue,field, where Ue,field=pE.

But in a magnetic field with fixed currents, when a loop (magnetic dipole) undergoes displacement, the variation in magnetic flux induces an electromotive force within the circuit which tends to change the current inrensity. To maintain a constant current J within the loop, the external power supplies maintaining the current must perform work against this induced EMF. The work done by the sources dWsource is precisely twice the mechanical work performed dWmech (dWsource=2dWmech), which leads to F=+Um,field.

To prove the relation F=+Ufield and demonstrate the mechanism of the external sources, consider a system of two circuits with constant currents I1 and I2, self-inductances L1 and L2, and mutual inductance M. The total magnetic energy of the system is,

W=12L1I12+12L2I22+MI1I2

When circuit I undergoes a virtual displacement dx, the mutual inductance changes by dM. The mechanical work done by the magnetic force is,

dWmech=Fdx=I1I2dM

Concurrently, the changing magnetic flux induces electromotive forces in both circuits due to Faraday's law,

E=dΦdtE1,ind=I2dMdt,E2,ind=I1dMdt

To maintain constant currents, the external power sources must counteract these induced EMFs, performing work equal to,

dWsource=(E1,indI1E2,indI2)dt=2I1I2dM=2dWmech

The change in the stored field energy dUfield is the difference between the energy supplied by the sources and the mechanical work performed,

dUfield=dWsourcedWmech=2dWmechdWmech=+dWmech

Since dUfield=Ufielddx and dUmech=dWmech=Fdx, it follows that,

F=+Ufield